import Vue from 'vue';
import App from './App.vue';
import router from './router';
import store from './store';

import Particles from 'vue-particles';
import Element from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import '@/theme/index.scss';
import VScaleScreen from 'v-scale-screen'
import dataV from '@jiaminghi/data-view'

import {
	i18n
} from '@/i18n/index.js';
import {
	globalComponentSize
} from '@/utils/componentSize.js';
import util from '@/utils/util.js'
import tween from "@/utils/tween.js"
require('echarts/lib/component/legend')

Vue.use(dataV)
Vue.use(VScaleScreen)
Vue.use(Particles);
Vue.use(Element, {
	i18n: (key, value) => i18n.t(key, value),
	size: globalComponentSize
});
tween.install(Vue)
Vue.config.productionTip = false;
Vue.prototype.bus = new Vue();

Vue.prototype.getQueryString = util.getQueryString
Vue.prototype.ajax = util.ajax
//Vue.prototype.baseURL = "http://192.168.0.110:8081/"
//Vue.prototype.baseURL = "http://116.62.120.142/bbep/"
Vue.prototype.baseURL = "https://www.weifeibangbang.com/"

new Vue({
	router,
	store,
	i18n,
	render: (h) => h(App),
}).$mount('#app');